package com.samphanie.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum OauthLoginType {
    /**
     * 方法类型
     * authorization_code,
     * password,
     * refresh_token,
     * client_credentials,
     * implicit,sms,
     * captcha,
     * social
     */
    AUTHORIZATION_CODE("authorization_code", "授权码模式"),
    PASSWORD("password", "密码模式"),
    REFRESH_TOKEN("refresh_token", "刷新模式"),
    CLIENT_CREDENTIALS("client_credentials", "客户端模式"),
    IMPLICIT("implicit", "简化模式"),
    SMS("sms", "手机号模式"),
    CAPTCHA("captcha", "验证码模式"),
    SOCIAL("social", "社交方式");

    private String type;
    private String desc;
}
